FROM docker.elastic.co/elasticsearch/elasticsearch:8.14.3
ENV ES_PLUGINS_PATH /usr/share/elasticsearch/plugins
ADD elasticsearch-analysis-ik-8.14.3.zip ./elasticsearch-analysis-pinyin-8.14.3.zip $ES_PLUGINS_PATH/
RUN cd $ES_PLUGINS_PATH && \
unzip elasticsearch-analysis-ik-8.14.3.zip -d ik/ && \
unzip elasticsearch-analysis-pinyin-8.14.3.zip -d elasticsearch-analysis-pinyin/ && \
rm elasticsearch-analysis-ik-8.14.3.zip elasticsearch-analysis-pinyin-8.14.3.zip

